package com.clstu.debug_;

public class DeBug02 {
    public static void main(String[] args) {
        int[] arr={2,1,-1};
        for (int i = 0; i <= arr.length; i++) {//故意写错了，看执行的bug
            //下标会越界
            System.out.println(arr[i]);
        }
        System.out.println("结束for....");
    }
}
